<?php namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use App\Http\Requests\VoteRequest;
use App\Vote;
use App\User;
use Request;
use File;


class AdminController extends Controller
{
  public function __construct()
  {
    $this->middleware('admin');
  }

  public function index()
  {
    $data['title'] = '欢迎来到云长智投票管理中心';
    return view('admin.index', $data);
  }

  public function system()
  {
    $data['title'] = '系统设置';
    return view('admin.system', $data);
  }

  public function admin()
  {
    $data['title'] = '管理员设置';
    return view('admin.admin', $data);
  }
}